package com.artron.mediaartron.ui.fragment.login;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.artron.baselib.base.BaseStaticFragment;
import com.artron.mediaartron.R;
import com.artron.mediaartron.ui.activity.LoginActivity;

import butterknife.BindView;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-11-01.
 */

public class NoLoginFragment extends BaseStaticFragment {

    public static final int REQUEST_CODE = 333;

    public static NoLoginFragment newInstance() {
        Bundle args = new Bundle();
        NoLoginFragment fragment = new NoLoginFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @BindView(R.id.NoLoginFragment_tv_login)
    protected TextView mTvLogin;

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_no_login;
    }

    @Override
    protected void initView() {
        mTvLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                LoginActivity.startForResult(mContext, LoginActivity.TYPE_LOGIN, REQUEST_CODE);
            }
        });
    }
}
